package com.tiny.boot;

import com.tiny.service.JestHttpService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author: zhumenglong
 * @Description:
 * @Date: Created in 20:40 2018/3/14
 */
public class Application {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("/app_config/applicationContext.xml");
        applicationContext.start();

        JestHttpService jestHttpService = (JestHttpService)applicationContext.getBean("JestHttpService");
        jestHttpService.connect();

        applicationContext.close();
    }
}
